package com.phiture.erp.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * @author YH
 * @date 2025/4/7
 */

@Getter
@AllArgsConstructor
public enum ErpMaterialPlanStrategyEnum {
    MTS_10(1, "MTS10基于预测"),
    MTS11(2, "MTS11基于预测（只计算毛需求，不考虑库存）"),
    MTS20(3, "MTS20基于预测和订单");

    private final Integer strategy;
    private final String desc;

    public static final Map<Integer, String> MATERIAL_PLAN_STRATEGY_MAP = new HashMap<>(4);
    static {
        for (ErpMaterialPlanStrategyEnum strategyEnum : ErpMaterialPlanStrategyEnum.values()) {
            MATERIAL_PLAN_STRATEGY_MAP.put(strategyEnum.strategy, strategyEnum.desc);
        }
    }
}
